﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace PPSMS_DAL;

public  interface ICRUD_DAL<T, ID>
{
    ID GetCurrentValue();

    void Insert(T t);

    void DeleteByIds(params ID[] ids);

    void UpdateById(T t, ID id);

    T? SelectById(ID id);

    List<T> SelectAll();

    List<T> ResultHandlerList(DataTable dr);

    T ResultHandler(DataRow dr);
}
